﻿<%@ Page Language="C#"   AutoEventWireup="true" CodeBehind="TrainAdd.aspx.cs" Inherits="UI.ModTrain.TrainAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>培训信息管理</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
   


    <style type="text/css">
      
        .style1
        {
            width: 125px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>培训信息管理</strong></p>
    <br />
    <table style="width: 60%;" align="center">
        <tr>
            <td class="style1">
                工号
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px" 
                    TabIndex="0" AutoPostBack="True" ontextchanged="txtEmpCode_TextChanged"></asp:TextBox>
            <a href="javascript:ShowLink('../ModEmployee/ZipSeaForIn.aspx',880,550)"><img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
                <asp:RequiredFieldValidator ID="rf5"  ControlToValidate="txtEmpCode" 
                    runat="server" ErrorMessage="必填项" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                姓名
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" TabIndex="1" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                部门名称
            </td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="180px"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="2"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                区域
            </td>
            <td>
               <asp:TextBox ID="txtAreaName" runat="server" CssClass="InputCss" Width="100px" 
                    tabindex="3" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        
        <tr>
            <td class="style1">
                职务
            </td>
            <td>
               <asp:TextBox ID="txtDutyName" runat="server" CssClass="InputCss" Width="100px" 
                    onkeydown="if(event.keyCode==13)event.keyCode=9"  tabindex="4"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                入职时间
            </td>
            <td>
                <asp:TextBox ID="txtJoinTime" runat="server"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    CssClass="InputCss" Width="100px" TabIndex="5" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                培训科目
            </td>
            <td>
                <asp:TextBox ID="txtTrainItem" runat="server" CssClass="InputCss" Width="180px" 
                    tabindex="6" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="rf6"  ControlToValidate="txtTrainItem" 
                    runat="server" ErrorMessage="必填项" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
          <tr>
            <td class="style1">
                培训时间
            </td>
            <td>
                <asp:TextBox ID="txtTrainTime" runat="server" CssClass="InputCss" Width="100px" maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    tabindex="7" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
                     <asp:RegularExpressionValidator ID="rf1" runat="server" ErrorMessage="格式错误" 
                    ForeColor="Red" ValidationExpression="^\d{4}-\d{2}-\d{2}$" 
                    ControlToValidate="txtTrainTime"></asp:RegularExpressionValidator>
            </td>
        </tr>
          <tr>
            <td class="style1">
                考核日期
            </td>
            <td>
                <asp:TextBox ID="txtCheckTime" runat="server" CssClass="InputCss" Width="100px" maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    tabindex="8" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
               
            </td>
        </tr>
          <tr>
            <td class="style1">
                考核成绩
            </td>
            <td>
               <asp:TextBox ID="txtCheckGrade" runat="server" CssClass="InputCss" Width="100px" 
                    tabindex="9" onkeydown="if(event.keyCode==13)event.keyCode=9" >0</asp:TextBox>
                <asp:RegularExpressionValidator ID="rf2" runat="server" ErrorMessage="请输入数字" 
                    ForeColor="Red" ValidationExpression="^[0-9]*$" 
                    ControlToValidate="txtCheckGrade"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                备注
            </td>
            <td>
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="220px" 
                    TabIndex="10" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        
    </table>
    <p style="text-align: center;">
    <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" 
            TabIndex="11" />
    &nbsp;<asp:Button ID="btnReset" runat="server" Text="清空" OnClick="btnReset_Click" 
            TabIndex="13" />
    &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click" 
            TabIndex="14" Enabled="False" />
    &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"  OnClientClick="return confirm('确定要删除吗?\n');"
            TabIndex="15" Enabled="False" />
    &nbsp;<asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" Text="关闭" 
            TabIndex="13" CausesValidation="False" style="height: 21px" />
    </p>
    </form>
</body>
</html>
